package com.smartpro.mis.modular.business.neo4jEntity;

import org.neo4j.ogm.annotation.EndNode;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.StartNode;

public class DistributeRelationship {

    public DistributeRelationship(Long id) {
        this.id = id;
    }

    @GraphId
    private Long id;
    private String name;
    private String createTime;
    //失效时间，单位是天
    private int expireTime;

    @StartNode
    private N4jDistributor n4jDistributor;

    //被推广者
    @EndNode
    private N4jUser n4jUser;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }


    public DistributeRelationship(String name, String createTime, int expireTime, N4jDistributor n4jDistributor, N4jUser n4jUser) {
        this.name = name;
        this.createTime = createTime;
        this.expireTime = expireTime;
        this.n4jDistributor = n4jDistributor;
        this.n4jUser = n4jUser;
    }

    public int getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(int expireTime) {
        this.expireTime = expireTime;
    }

    public N4jDistributor getN4jDistributor() {
        return n4jDistributor;
    }

    public void setN4jDistributor(N4jDistributor n4jDistributor) {
        this.n4jDistributor = n4jDistributor;
    }

    public N4jUser getN4jUser() {
        return n4jUser;
    }

    public void setN4jUser(N4jUser n4jUser) {
        this.n4jUser = n4jUser;
    }

    public DistributeRelationship(String name, String createTime) {
        this.name = name;
        this.createTime = createTime;
    }
}
